Now Available!

Native .Net
Components

TList WinForms
for
.Net Framework

&

MetaDraw WinForms
for
.Net Framework



Bennet-Tec
Components
Make you
look sharp!



Home

Company

Products

Order Forms

How To

Downloads

Updates

Support

Registration

Dependencies

Links

Compatibility

Site Map


Basic How To


How To Load a Background Picture

Download VB Sample
Return to main How To Page

Loading a Background Picture

ALLText uniquely supports the display of a background image positioned between the standard control background and the text itself. The effect may be used in a variety of manners - simulating transparency, setting up a spot light, framing text within a set of curtains, combining text and pictures as in a cartoon, or simulating the sliding of a cardboard over an overhead transparency as in a presentation. For example: Set up ALLText with black text and a black background. Nothing shows up. Now set in a round white ball as an image using BackPicture. Move it around with BackPictureX and BackPictureY. The effect is that of a spotlight with the black text showing up wherever the circle is displayed.

The background image is set using the BackPicture Property. The picture itself is set by assignment to the BackPicture property either through use of the standard Visual Basic LoadPicture function, or by assignment based on the picture property of another control. Positioning of the background picture is supported through the BackPictureX and BackPictureY properties. The actual display location of the picture does not change with resetting of the x & y coordinates until refreshed by setting the BackPictureRefresh property.

BackPicture Property

Description: ALLText uniquely supports the display of a single background image which may be positioned between the standard control background and the text itself. This picture is set or read via the BackPicture Property.

The picture itself is set by assignment to the BackPicture property, either through use of the standard Visual Basic LoadPicture function, or by assignment based on the picture property of another control. Positioning of the background picture is supported through the BackPictureX and BackPictureY properties. The actual display location of the picture does not change with resetting of the x & y coordinates until refreshed by setting the BackPictureRefresh property.

Syntax:

ALLText.BackPicture = LoadPicture(FName$)

Access:
Read Write
Design + +
Run + +

DataType: Picture

Values: Any picture available via the LoadPicture property or contained in the Picture property of another control.

Remarks: The BackPicture property may be used for a variety of special effects. The easiest way to understand how the background picture is displayed is to imagine Black text on a Black background. Nothing shows up. Now set in a round white ball as an image using BackPicture. Move it around with BackPictureX and BackPictureY. The effect is that of a spotlight with the black text showing up wherever the circle is displayed. Other effects possible using the Background Picture include; framing text within a set of curtains, combining text and pictures as in a cartoon, simulating the sliding of a cardboard over an overhead transparency as in a presentation. We leave the rest to your imagination. Please let us know if you come up with any novel ideas.

BackPictureX, BackPictureY Properties

Description: Set the top left corner coordinates of an included picture to paint on the Text background (coordinates are measured in relation to top left corner of Text).

Syntax:

ALLText.BackPictureX = x&
ALLText.BackPictureY = y&
x& = ALLText.BackPictureX
y& = ALLText.BackPictureY

Access:
Read Write
Design + +
Run + +

DataType: Long (twips)

Values:

-MaxTextWidth

Copyright© 2003 Bennet-Tec Information Systems, Inc. All rights reserved.